//
//  DailyKChartViewController.h
//  Stock
//
//  Created by sun black on 12-2-9.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"
#import "StockChartDataService.h"

@class CPTGraphHostingView;
@class APYahooDataPuller;
@class CPTXYGraph;

@interface DailyKChartViewController : UIViewController <CPTPlotDataSource,ServiceDelegate> {
    CPTGraphHostingView *graphHost;
    UIView *loadingView;
    CPTXYGraph *graph;
    NSMutableArray *datas;
    StockChartDataService *service;
    NSString *chartType;
    NSString *stockId;
    NSMutableArray *barChartData;
    BOOL loaded;
    CPTMutableLineStyle *greenLine;
    CPTMutableLineStyle *redLine;
}
@property (nonatomic, retain) IBOutlet CPTGraphHostingView *graphHost;
@property (nonatomic, retain) IBOutlet UIView *loadingView;
@property (nonatomic, retain) CPTXYGraph *graph;
@property (nonatomic, retain) NSMutableArray *datas;
@property (nonatomic, retain) NSMutableArray *barChartData;
@property (nonatomic, retain) StockChartDataService *service;
@property (nonatomic, retain) NSString *chartType;
@property (nonatomic, retain) NSString *stockId;

-(void)chartViewDidDisplay;

@end